fixing test issue for environments that do not have mongoengine installed