added test 'user is not logged in redirects to log in page' and refactored other tests to pass