This is a combination of 2 commits.

Changed the preferences example to make it a 'compatibility' Editor

Changed the preferences example to make it a 'compatibility' Editor
Refactored test snippets