Unit test for AbstractStyle