[0.3.158] Add tests and fix not displaying window to unittest