Unit tests for case controllers and directives