testing the commit function