bag consistency unit tests pass in this commit