Refine with a lot of test cases