Tests for document schema