cleaned up test with reusable function
cleaned up test with reusable function

dotnetCarpenter/node-ecstatic,jfhbrook/node-ecstatic,dotnetCarpenter/node-ecstatic,clee/node-ecstatic,jfhbrook/node-ecstatic,ngs/node-ecstatic,clee/node-ecstatic,krikx/node-ecstatic,mk-pmb/node-ecstatic,jfhbrook/node-ecstatic,mk-pmb/node-ecstatic,dotnetCarpenter/node-ecstatic,mk-pmb/node-ecstatic,krikx/node-ecstatic,ngs/node-ecstatic