Extract common test cases