fix directive tests