added sample directive and test, added midwaytester