fix unit test connect_user