functions/list.py: Do not update list item if text content unchanged

Also add unit test to check