add unit test. fix driver for cheetah debugging