test that switch_user can log a user in