fix mocha and add header tests
fix wallet stub