diff --git a/test/macros/net.js b/test/macros/net.js
index <HASH>..<HASH> 100644
--- a/test/macros/net.js
+++ b/test/macros/net.js
@@ -61,6 +61,9 @@ exports.shouldSendData = function (options, nested) {
 
   if (nested) {
     Object.keys(nested).forEach(function (vow) {
+      if(!context.hasOwnProperty('after data is sent')) {
+        context['after data is sent'] = {};
+      }
       context['after data is sent'][vow] = nested[vow];
     });
   }
@@ -201,4 +204,4 @@ exports.shouldDuplexBoth = function (options, nested) {
       producers: options.producers
     }, nested)
   };
-};
\ No newline at end of file
+};
[fix] Ensure key exists before attempting to add methods to object in should send data macro