In this test you check whether the values are equal, but you need to test whether the values are both 2 (I suspect they are both 1).