Check that largish tree can be written with write_tree()
Check that write_tree() keeps blobs added by add()