Added unit tests for Regex classes