adds tests for custom directive