fix api path for test