Fixes test for user authentication.