Hardening/harness errors under valgrind

### Description
Made the harness and valgrind tests a little easier on the eye.
Fixed a few errors in harness tests.

Fixed in 697dd052fbae8dd072171b3601ce7e0ecac91475