Fixed logic fail in test pass/fail