Added more karma testing for controller and services