add document tests