Tests: Hide main window before every test

If window is visible and items are added, first item stays is selected
since it was added first -- this is not expected in tests.