Added unit tests for Regex class