minor optimization in regex on test