refactor logging tests

use asserts. This is in preparation of allowing logging output in streaming mode.