build the api and tests