Add tests for checking correct handling of $GIT_NOTES_REF and core.notesRef