I guess we should also add fuzz tests to all methods of the api.API. It may help to improve both:
api.API