Fixed bug with getLatestIndex()
Updated Storage Test