adds encodes chunk test and method