tests for scaffold.Document