added test cases flipping a bit