Add more tests for the analytics controler