test dir for c api