Reversed incorrect condition

Was unintentional typo- fixed by making test positive rather than
negative