Test verifies `.commit()` error handling