added more tests for PipelineAPIHandler