247: Some API tests and a bit of JSDoc love