Fix loading test cases in js selecting code.