tests are in for encoding