a number of small changes

- switch tests to chai
- use global test helper
- switch badges to flat svgs
- ensure variable names in tests are valid
update editorconfig
update npmignore