Tests: DRY out logging tests

Closes #715