Updated testing method to make it easier to test different sets.