Tests document format