Remove duplicate tests in res.location and res.jsonp (#6996)