Tests for document task