PC register controller and its tests