toJSON covered by dedicated test