Reformatting test document