Fix indexSpec test by ensuring a non-null value is passed in