Refine tests.