Added more DocumentCodec unit tests