Fixing authentication tests