How does the sentence end?

When Joseph applied for an apprenticeship at Ryan's shop,
Ryan knew he had to create a welding test.