Add a document builder class for testing #107

I added a document builder class. The class would be useful for simplify the test cases which we need to create sample documents. 

Fix Issue #107.