Netanyahu ends decade-long testimony in corruption case