Added javascript tests for adminCtrl.js