Fix dependency injection in flashMessages directive

We got an error when minifying our project through grunt. I fixed the flashMessages directive to use proper dependency injection.

More information here: http://docs.angularjs.org/guide/di

Any ideas how to test for proper dependency injection?