Added tests for reg exp and tests to cover the additional features.