Test code for hrpt