added function "configure(map)" and a unit test