add tests & fixes for style directive