Throw UnknownRepositoryException for invalid repo

Throw the exception when either the commit id could not be resolved or
the repository is invalid.

- Rename test method names

- Use single quotes for literals and double-quotes for GStrings