working unit test over socket