externalRegisterCtrl testing and refactor.