added stream output operators
fixed warning in test case