CR: assert records are sorted for set ops, spelling
Add first JS tests! Use Mocha.