Some cross-browser test improvements