Clean up tests
Currently several tests print a warning about unhandled promise rejections. Probably should take care of this (within the source, not the tests itself).
UnhandledPromiseRejectionWarning: Unhandled promise rejection
Review output from npm run test
to see these errors.