add add check to rtprint

create test code for #403, I assume this will fail