test printer code