update tests to allow login as a user properly