- cover some tests
- improve scala sources according to Twitter's recommendations