Add unit test for hasFailedWebGLSanity
Add some missing Picture.destroy calls to unit tests