Fixed support for iWork files, added tests