Merge "Use the write entrypoint for stub_test."