test for committing