tests for analytics wrapper