STY: add encoding in test module as well.