diff --git a/test/fileFactory.spec.js b/test/fileFactory.spec.js
index <HASH>..<HASH> 100644
--- a/test/fileFactory.spec.js
+++ b/test/fileFactory.spec.js
@@ -24,6 +24,15 @@ describe('Test of the fileFactory factory', function() {
     }));
   });
 
+  it('return void if buffer is empty and useTempFiles is false.', function() {
+    assert.equal(fileFactory({
+      name: 'basketball.png',
+      buffer: Buffer.concat([])
+    },{
+      useTempFiles: false
+    }), null);
+  });
+
   describe('Properties', function() {
     it('contains the name property', function() {
       assert.equal(fileFactory({
Add tests for empty buffer and in memory upload.

This check needed for issue #<I>.