dd test code for rtshell for issue #2