Add test case for calc greedy regex problem