Fix duplicate array keys in tests