Fix assertions to delegate logging to harness