Writing tests for directives with Jasmine