Make test work in remote and embedded.