Add and test output stream operator<<.
Silence warnings about unused variables.