Fixed test using wrong method call to get attachments. Add test that uses mutable dictionaries and mutable arrays to initalise a document