Add emulator tools and unit test

Test: None.
Change-Id: I0ed5908b10008701c744c7516ce0995d55df4b3b
4 files changed