Fixing authorization test