This phrase is often used in the context of relationships, where one partner might put the other through a test to see how committed they are. It can also be used in a broader sense, for example, to refer to a test of someone's allegiance to a company, organization, or political party.