add binary codec tests