Fixed a bug in source block encoder
Updated test code:
- Removed old test code (it was doing a lot of nothing interesting)
- Added new test code (simple, small and concise thanks to the JMH tool)