Fixed buggy comparison in test