Add tests for list.free()