Add sign in and sign out with tests.