adding signout and tests