tools.test: Fix using list.