Add missing import and refine test.