add tests for mutating files obj in branch pipelines