Hello Ramji,
Mix and match versions are not supported. Please, make sure you have all DevTest components under the same version.
Additionally, make sure the REST DPH is the first filter in the list of filters in the HTTPS listener step.
When you say the test passes only for A, do you mean you are getting an 'HTTP - 404 no match' response?
If that is the case, please take a look at the inspection view. You can try to verify what is not matching.
You can refer to the documents in the link below regarding the Inspection View:
How do you use the Inspection View and options to - CA Knowledge
How to troubleshoot VSE request Matching. - CA Knowledge
Hope it helps.
Heloisa