reading document and test