Added tests for printing