Add tests for the directive