test: [helper] refactor chai global
lib: refactor as constructor
tests: refactor for node 8/10
benchmark: refactor for constructor
travis: testing node 8/10 and all branchest