Added test for regex grouping bug fixed in 307a3e