add branches test-index-spec.js