Example of Unit Testing Mixpanel Javascript Code