Add spec for GTIndex writeTree method