Added initial tests for main view.
Added test for stats on homepage.