created test directive and hooked it up