fix #420 CssLoader test case for slow networks

Fix a test case that fails when the browser is too slow to apply the css
rules of a newly loaded css file