Support the creation of new studies in write_study()
Convert GitData tests to a unittest suite
Use a setUp in our tests to define our test repo and improve our branch_exists test
Improve test assumptinos and add proper cleanup methods to GitData tests

Now these tests do not depend on already-existing branch names in our
test git repo and delete branches which are created in the process of
testing.