Testing of AngularJS directive Google Charts