test(main): add unit tests
fix(main): pass unit tests
chore(release): cut the v0.4.1 release