Stylesheet and test optimization