Adding test for style element load event; misc cleanup.