Added unit test for txdb model.

Fixed txdb.storeTransaction() function.
Added darkwallet mock