Streamline operations test code in Grep JUnit TDD