Fixed DocumentTest