fixed #22 and added test under unixSocketTesting