write test cases for redact document source