emulator: Move the definition of NewClock
emulator: Make the clock tests slightly less strict
emulator: Implement an emulated network