Add tests for encoding subsystem
Add (partially implemented) new encoding system
Use containers for tests