test document order