Fix tests
Test for removing comma at end of list string