Added more tests

* tests/repository.R: Added tests to initialize a repository and check
  the state of the repository.