Moves newest tests to the beginning of the set
Adds encoding test
Adds a couple of utility macros