refactoring functional ManageMapTest