Test write_tree omits files above added dir
Test that repeated writes share common objects