move CodeEditor into test harness