bug #503: allow query-only links in HTML::anchor()

Added tests for query-only and fragment-only links

Ref #503