Add user controller unit tests and rejig how user controller works. Mostly this shifting init stuff to an onInit function so it can be easily unit tested.