change some closure to non-closure; change __getattribute__ to __getattr__
fix some issues during testing
add part of tests
finish tests
add ci support
Merge branch 'feature/mem-optim' into develop
v0.1.9