(test) Add tests for ProfileCtrl.