Update index.test.js

switch www. to api.