refactor pegex tests to use simpler testml