[feature] add test for socket