Fixed broken comparison in test