refactor wxmedit_test