Reg Testing Code