user local socket
add test cases
use net socket