Sorry, just realised you're not testing the html output, this isn't actually mentioned in the docs (I've just raised an issue to address this) but a decent example is here: https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/t/Dice.t