tests for commit()