Add attributes to the test document.