make test more flexible to be run on remote machine