collect test cases together to improve locality