Better test for window event
the mist may be empty
Add test load shader

(not sure if this will work on travis)