chore(cmake): add c_api test