(do_test): Simply use 0 as invalid index.