added get_connected_user method and test.