Fix typo introduced in 41bb2a6ffec3c8bfa81f989611368c7b33acd295
Added testcase for persistent-auth