test commit function