Testsuite enhancements from OpenLayers/GeoExt 1

See openlayers/openlayers@57c16b7 & geoext/geoext@aaab5eed.

Please review.