Add unit test for .has_committed