Add close main document browsertest.