Adding stub for RegularPipeline mocking UT, several improvements, fixes