I have created a custom Hook called usePolling which accepts a function to poll over a period of time (declared by interval) the hook works fine but now I am trying to test