fixing bug for directive testing