test/server:added stream error tests
socket:added stream API-like error emitting