insert directive + graph directive in testing