non-cached and cached tests - refactor of code that sub-selects within an array.