Smallfix
Style merging

- Fixed some issues in style merging.
- Added some tests.