Adapt tests to api from root