Added test case for append in empyt and non-empty list
Added append method