Complete index test case
Complete algorithm test