add _rewriteHref tests, set original href correctly, expose defaults for testing