testport: Somehow invalid origin was not being checked, even in 3.0.x

MFH