added input encoding tests