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)
Removed old test code for real
merge from development