Added test for Commit constructor