Regex unit test fix