add test case & fix its bug
0.1.2