Fixed bug in index.html test case