MDL-40176 mock_submit method for testing