tests for analytics