update to pass all extra tests.

need shutdown TextEdit so that it won't break the subsequent tests.