Testing to see if the function is called 3 times