update test and use bare slices