added testcase (unittest) for regular expressions