api testing example using PnxTest