unit  tests for loginWithCookie()
also test whether hooks work
test hooks also on login