update test script
fix indexing tests
fix resize test