fix a unit tests requiring pymyinstall