Managed to split the controllers out , cant get index.js to define the controller firts unfortunatly. could be load order for karma or something else