added selenium tests; updated map legend creation to new API in clld