cpp: test: Add ostream operator to formattools