Add missing import and simplify test.