add net.Socket unit tests for browser environment