Added test to ensure that array keys are not clobbered