RegExp tests

fixes #58 and relates to #33