Fix incorrect test in Document spec