added tests for printing