Regex tests added; amendments to allow for test cases with no source xml