well test 5 failed horribly... but no memory errors.... insertIndexPage is a little huge and hard to understand...