Update index.js

Changed  junit xml format preparationto the following way,
<testcase>
        <error/>
</testcase>
<testcase>
        <failure/>
</testcase> 
instead of 
<testcase>
        <failure/>
        <failure/>
       <error/>
</testcase>