bug fix

return error if test did NOT pass