Tests: DRY out logging tests