setup the spec and simplecov env
add test for Document
add tests for fields
add tests for attributes