Add nil/empty list.

Make type assertions in tests