Fixing commit.to_dict tests.