add test for splicing arrays