Add tests for checkRepo

Add basic tests for `checkRepo()`.