Made list tests polymorphic to more easily test common functions