fix tests relying on websockets