Building unit tests, found a bug in persitance with pipeline