Replaced old unit test for RemoveLogs

Refs #8336
Merge remote-tracking branch 'origin/feature/8336_better_unit_test_for_removelogs'