Docs: Update repositories.asciidoc

1. Enable the repository using "add-apt-repository" to avoid this error "No command 'deb' found".
2. Adding "sudo" to update and install command.

Closes #8691
Docs: Fix the wording for inner hits a bit

Closes #8747
[TEST] compare strings and strings - leftover from Path API refactoring
[TEST] LoggingListener to restore the initial logger levels after any modification

Modifications to LoggingListener pushed with #8820 caused the original logger levels not to be reset after modifications, as the new state was saved for restore instead of the previous one.

 Added unit tests for LoggingListener as well.

Closes #8845