Iterate over expectedFeatures correctly

This fails if Array.prototype is extended.