Added Console emulator class and simple test