Add unit test for StyleCollection class