Make bad URL function tests more useful.