Fix inverted assertions in tests

These were causing test fails. I'm not sure how they ever worked.