Fix unit testing for auth guard in remember cookie