Merge pull request #1833 from megawac/browser-testing

Refactor collection nodelist tests
Prepare tests for running in node
Set up testing via Karma