test infra and add some tests
add some tests. fix update
Merge branch 'release/0.2'