Add tests and modify style.cc

Update style, create testing structure and add tests.