Tests for whole list replace
Implementation on whole list replace