toastr and unit testing for a directive