Fix test failure condition