Add a document builder class for testing #107

I added a document builder class. The class would be useful for simplify the test cases. 

Fix Issue #107.