testing angular directives