Tests refactored
Editing modes and code inserter ported to JFX