spend_database unit test.
block_db unit test
transaction_database unit test