Add tests for type safety.
Fine tune checkstyle.
Test classes passes checkstyle too.