Added test for pad_to_bits with charlist.