Fixed bug in phantom click and add test.