Fixed choose slice functions to accept units, added _choose_wavelength_slice tests