fix directive template testing