Use a set instead of a list for test queue. No need for duplicate tests