Improve test_recompile_edit