Add required 'config' parameter to VirtualSocket. Using empty dict for defaults.
Fix logic in 2 failing tests.