b) will remove the link to /test.html#top which is usually not desirable
How about values encoded in the URL (ie. /test.html?myvar=1)? As long as it wasn't navigation related (eg. /test.html?page=1), or needed to remain in the URL between pages for some reason, you might want to check for those too.
Now we're getting into regular expression country.f2富二代官网入口