Added unit tests for all for directives