Add some unit test and scenario test.