code for non-rpd testing