add tests for directives and integration with codeship