Inverted the logic - don't know how I did that. Anyway, fixed now. And added a test.