fix api internal test