Additional practice with unit testing.  Required to write function that has same functionality as .splice method.