Initial infrastructure for unit tests of the API