Added home page for logged in user and corrected tests