fixed render test function in map_class