changed device emulation for tests