Refactor to the tester class also added new regex to the protocol class