fix tests with authentication