It adds tests for the api