Unit test preference cleanup, reuse test window for DocumentCommandHandlers-test