test for get attachment with document