The issue really would not be the commits, but the registration. Registering these with the Database should see they are the same.
Need a test specifically where you see this.