provide a handler builder to facilitate tests