fix tests that require login