Testing the commit functionality