A judge heard testimony Monday on whether he should throw out the videotaped confession of a man charged in the 2014 ambush slaying of a Pennsylvania trooper.