Add emulator class and unit test.
Include emulation mixin.