add encoding info
more tests