fix test, throw exception with message on failure