Fix client.WantsAuth, add test coverage.