fixed LINT errors
Added unit test for the directives