Fix usage example test failures.

Problems were due to print statements that should be logger statements or
non-matching whitespace between expected/output statements for usage
tests.
Refs #9573