Testing with list instead of dict?