feat: add API methods test and initial compiler implementation