Added test cases for Regexp.