add add check to rtprint

create test code for #403