api covered with test