diff --git a/test/phantom-html2pdf.test.js b/test/phantom-html2pdf.test.js
index <HASH>..<HASH> 100644
--- a/test/phantom-html2pdf.test.js
+++ b/test/phantom-html2pdf.test.js
@@ -14,7 +14,8 @@ describe('phantom-html2pdf.js', function() {
         'papersize': {format: 'A4', orientation: 'portrait', border: '1cm'}
       };
 
-      pdf.convert(pdfOptions, function (result) {
+      pdf.convert(pdfOptions, function (err, result) {
+        assert(!err, "Error is empty");
         result.toBuffer(function (buffer) {
           assert(buffer, 'A buffer is returned');
           assert(buffer.length > 0, 'The generated buffer is not empty');
fixes tests failing due to convert method arguments change