Added home page view tests
Updated tests and cleaned code. All tests pass.