Added a link to index.html and fixed unit tests there were broken due to timing issues in loading the page
These test are now much simpler since we get a good callback on page load