Tests using mocked login when running