remake tests relying on websockets