added more tests for list functions