[IMP]Improved code yml test case for validate and pay invoice due to api changes