fixed broken toJSON spec
add setPalette tests, update editor fixtures
Add skeleton for more palette testing