Add more accurate Unit test for forming document