fix directiveToFiles test