Modified directiveDefine() and added new test for it