creating mock socket class; starting a test