bugfixes in test editor and code editor