Add test for regex selection