Dynamically generate API methods. Add tests for new methods.