unit tests for RegisterCtrl added