Added @GremlinPipeline.cast@ to allow pipeline end type to be reset.
Moved test case to correct file.