Add test for getStyle