Testing isLocal functionality