Tests for RegExp