Add tests for pipeline manager