Fix getDefaultRemote implementation in JGit, add tests

JGit implementation was using readNames() when it needed to read
subsections (since it was not passing fully qualified names to the
function).