Basic structure for encode decode testing