Added tests for analytics page