adding coverage, bugfix for allow-bad-certificates