added test for socket factory