Added regex tester to behave like scala tests