Tests: DRY out logging tests

Done.