Bug 1087973 - Use Resolver.format to throw in tests

https://bugzilla.mozilla.org/show_bug.cgi?id=1087973