Revert "Removed a test using an obsolete method"

This reverts commit c45e8a616e96e68ee442cbf4623ac9daa5800417.
Revert "Removed obsolete test using addStyleSheet"

This reverts commit 523b1ca44741e6fd1cf28778edbfca355d4703d1.