I\'m trying to write a unit test that checks if the .track method of the Analytics is called. For some reason the test keeps failing, although calling the function via http