improve fail test to handle errors more strictly