added some tests for PipelineAPIHandler