refactor apckage
add more tests
0.2.0