fix(tests): Fixing requiresLogin middleware