Fixed dim_dict test in testnmapping for Python 3 compatibility