added tests for enc_types