bug fix - completed status not updating

test_entry record was not being updated
under some conditions - fixed logic