Added a test case for list with null element