Testing Commit Function