bug fixes in videopipeline and test script