Test $log.warn in ng-click