Expiration test cases refactor

Refactor JMS expiration test cases as per peer review of pull request : https://github.com/wso2-dev/product-mb/pull/31