Update list functions, added more tests.