after refactor:
* fix unit test
* fix .gitignore