Add required 'config' parameter to VirtualSocket. Using empty dict for defaults.

pep8 fix
Fix logic in 2 failing tests.