Correct tests and assign mapped values back to array.