added test case for pointer compare in if