Add tests to main window load
Avoid useless load parsing