added socket handler test
Merge pull request #6 from yzernik/sockethandler_tests

added socket handler test