Added more tests for encoding parts.