test updated with socket