Testing commit function