add tests for mixpanel