Adds tests for compound documents