Added a test for commiting