added junit test for regex translation