var tests = require('../../../tests/keyaddrtest.json'),
  assert = require('assert'),
  utils = require('../../lib/utils'),
  ecdsa = require('secp256k1'),
  SHA3 = require('sha3');

it('keyaddr tests', function () {
  tests.forEach(function(data) {
    var hash = new SHA3.SHA3Hash(256);
    hash.update(data.seed);

    var privKey = hash.digest('hex');
    assert(privKey === data.key);

    var pubKey = ecdsa.createPublicKey(new Buffer(privKey, 'hex'));
    var addr = utils.pubToAddress(pubKey).toString('hex');
    assert(addr === data.addr)

    var emptyMsg = new Buffer([0]);
    var sig = ecdsa.signCompact(new Buffer(privKey, 'hex'), emptyMsg);

    var recoveredPubKey = ecdsa.recoverCompact(emptyMsg, sig.signature, sig.recoveryId, false);
    assert(pubKey.toString('hex') === recoveredPubKey.toString('hex'))

    // todo: assert the v, r, s values when secp256k1 module is updated to use deterministicK
  });
});

@@ -176,16 +176,53 @@
 ha3');%0A%0A
+describe('%5BCommon%5D', function () %7B%0A  
 it('keya
@@ -247,16 +247,18 @@
 on () %7B%0A
+  
   tests.
@@ -278,24 +278,26 @@
 ion(data) %7B%0A
+  
     var hash
@@ -327,16 +327,18 @@
 6);%0A    
+  
 hash.upd
@@ -350,24 +350,26 @@
 ata.seed);%0A%0A
+  
     var priv
@@ -394,24 +394,26 @@
 'hex');%0A    
+  
 assert(privK
@@ -427,24 +427,26 @@
 data.key);%0A%0A
+  
     var pubK
@@ -501,24 +501,26 @@
 hex'));%0A    
+ 
+ 
 var addr = u
@@ -562,24 +562,26 @@
 'hex');%0A    
+  
 assert(addr 
@@ -596,24 +596,26 @@
 .addr)%0A%0A    
+ 
+ 
 var emptyMsg
@@ -634,16 +634,18 @@
 r(%5B0%5D);%0A
+  
     var 
@@ -704,24 +704,26 @@
 emptyMsg);%0A%0A
+  
     var reco
@@ -806,24 +806,26 @@
 false);%0A    
+  
 assert(pubKe
@@ -880,16 +880,18 @@
 hex'))%0A%0A
+  
     // t
@@ -976,16 +976,24 @@
 nisticK%0A
+    %7D);%0A
   %7D);%0A%7D)

use describe block to make test output clearer