version of test2.cpp 

this part is working, the operator<< is performed and checked