[stream] added: unittests for Socket, File