Add a check for `api.BaseAPI` by implementing a test API and test that receiving messages and dispatching them works as planned.