Wrote the majority of the tests for DocumentSorter and SuperDocGenerator.