Test the commit operaion