move test pipe class to common location