main to test document