Ensured that external program was stopped in index_test.