added tests around logged in page