sample directive and tests