adding tests for encoding classes.