Karma passing directive test