Make tests distribution-agnostic and change export/import style

Make tests distribution-agnostic and change export/import style

Change export style

Make tests use globalized version of library

Revert accidental changes to Makefile

Remove specific throw tests

Remove all `imports` in test files

Change import style in node tests

Remove dependency on ES6 features in tests

This allows it to run in non-ES6-compatible browsers (e.g. all of them)

Remove ES6 features from factories