Implement test for Gateway::serve