Add testing to controllers

Tests for IndexCtrl, RobotCtrl, RobotCommandsCtrl and DeviceCommandsCtrl.