using same api on tests