Write some Mocha tests

Also includes a few other tweaks, such as aliasing 'placement' to 'sidenotePlacement'.