Add document manipulation tests