tests; toObject -> toJSON