Add tests for login state view