Added tests
RegexpBuilder: don't fail if  the list of words is empty
Synced from master
Synced from master