Fix hung tests, reversed condition