converts to psr-4 namespace declarations
adds socket test