Add test for printer visitor.