Create test case for bug with sorting subsets