update bugzilla links to support mozilla.org + add tests + factorize