Issue #284 RtGistITCase.readsAndWritesGists failing on write fixed

This pull request contains also fix for #157