fixed visitor unit test