pub fn create_test_document(content: &str, filename: &str) -> Document
Helper to create a test document from content