A function that checks whether an element occurs in a list
Add unit test for contains? method