Save and read stock index from file

If stock index file does not exist, the program will retrieve the index
and save it to the stock index file.

Rename some of the test cases.