added test for character classes and sets in regular expressions