Test for regexp builder