New unit test for home page redirect and refactored home_page view to deal with POST request