fix config test

* added GIT_EINVALIDSPEC as error code
* use error msg for expected failures
* fix error message content for `git_config_get_string()` call