Added test for checking if list is empty or not