tests: Make sure tests assert on failures and return error status