Create a generic mock server for function tests