remove encode test