add isHostLocal tests (mocha)