Added emulation for offline tests