Tests/DnD: fix uri parsing
Tests/DnD: fix uri parsing

When no \n is present at the end of the uris list, the function doesn't
return the uri.

rvandegrift/elementary,tasn/elementary,rvandegrift/elementary,FlorentRevest/Elementary,tasn/elementary,tasn/elementary,rvandegrift/elementary,rvandegrift/elementary,tasn/elementary,FlorentRevest/Elementary,FlorentRevest/Elementary,tasn/elementary,FlorentRevest/Elementary