Apart from adding a test, this commit also adds a dummy implementation for Auth that can be used in tests to control the auth status.