Make framework_test listdir more robust by checking a set, not a list