testin splice() method