regex unit tests and fixes

support for null values running through regex and more unit tests