Add test for valid S4 class git_repository

* tests/repository.R: Check validObject of a git_repository.

Signed-off-by: Stefan Widgren <stefan.widgren@gmail.com>