Update all asserts to be consistent with the unittest framework

Just some code clean up to make all of the encoder unit test asserts consistent