test suite: substring matching using RegExp