Tinytest.add('Storage - Insert', function(test) {
  var storage = new Storage();

  storage.set('string', 'string');
  storage.set('number', 123);
  storage.set('boolean', true);
  storage.set('date', new Date(2000, 0, 1, 0, 0, 0, 0));
  storage.set('array', [1, 2, 3]);
  storage.set('object', {
    a: 'a',
    b: 'b',
    c: 'c'
  });
  storage.set('nested', new NestedCore({
    string: 'string',
    number: 123,
    boolean: true,
    date: new Date(2000, 0, 1, 0, 0, 0, 0),
    array: [1, 2, 3],
    object: {
      a: 'a',
      b: 'b',
      c: 'c'
    }
  }));
  storage.save();

  storage = _.omit(Storages.findOne({}, {
    transform: null
  }), '_id');

  expectedCore = {
    string: 'string',
    number: 123,
    boolean: true,
    date: new Date(2000, 0, 1, 0, 0, 0, 0),
    array: [1, 2, 3],
    object: {
      a: 'a',
      b: 'b',
      c: 'c'
    },
    nested: {
      string: 'string',
      number: 123,
      boolean: true,
      date: new Date(2000, 0, 1, 0, 0, 0, 0),
      array: [1, 2, 3],
      object: {
        a: 'a',
        b: 'b',
        c: 'c'
      }
    }
  };

  test.equal(storage, expectedCore,
    'The document has not been saved properly'
  );
});

@@ -43,16 +43,48 @@
 test) %7B%0A
+  var id = 'ekfAFb8w5umxaeAPs';%0A
   var st
@@ -107,35 +107,34 @@
 age(
-);%0A%0A  storage.set('
+%7B%0A    _id: id,%0A    
 string
-',
+:
  'st
@@ -142,94 +142,55 @@
 ing'
-);%0A  storage.set('
+,%0A    
 number
-',
+:
  123
-);%0A  storage.set('
+,%0A    
 boolean
-',
+:
  true
-);%0A  storage.set('
+,%0A    
 date
-',
+:
  new
@@ -222,33 +222,20 @@
 , 0)
-);%0A  storage.set('
+,%0A    
 array
-',
+:
  %5B1,
@@ -244,37 +244,26 @@
 , 3%5D
-);%0A  storage.set('
+,%0A    
 object
-',
+:
  %7B%0A
+  
     
@@ -266,24 +266,26 @@
     a: 'a',%0A
+  
     b: 'b',%0A
@@ -284,24 +284,26 @@
 b: 'b',%0A    
+  
 c: 'c'%0A  %7D);
@@ -303,35 +303,24 @@
 '%0A  
-%7D);%0A  storage.set('
+  %7D,%0A    
 nested
-',
+:
  new
@@ -333,24 +333,26 @@
 dCore(%7B%0A    
+  
 string: 'str
@@ -349,32 +349,34 @@
 ring: 'string',%0A
+  
     number: 123,
@@ -372,32 +372,34 @@
 umber: 123,%0A    
+  
 boolean: true,%0A 
@@ -389,32 +389,34 @@
  boolean: true,%0A
+  
     date: new Da
@@ -439,32 +439,34 @@
 , 0, 0, 0),%0A    
+  
 array: %5B1, 2, 3%5D
@@ -459,32 +459,34 @@
 ray: %5B1, 2, 3%5D,%0A
+  
     object: %7B%0A  
@@ -485,32 +485,34 @@
 ct: %7B%0A      
+  
 a: 'a',%0A
       b: 'b'
@@ -491,32 +491,34 @@
         a: 'a',%0A
+  
       b: 'b',%0A  
@@ -513,32 +513,34 @@
   b: 'b',%0A      
+  
 c: 'c'%0A    %7D%0A  %7D
@@ -538,14 +538,22 @@
     
+  
 %7D%0A  
+  
 %7D)
+%0A  %7D
 );%0A 
@@ -586,15 +586,8 @@
 e = 
-_.omit(
 Stor
@@ -633,18 +633,9 @@
   %7D)
-, '_id');%0A
+;
 %0A  e
@@ -650,16 +650,29 @@
 ore = %7B%0A
+    _id: id,%0A
     stri
@@ -1079,17 +1079,16 @@
  %7D%0A  %7D;%0A
-%0A
   test.e

Add tests for inserting document with the _id field filled