Add some simple tests, mainly targeting the encode and decode tables
Merge