added some test code to solve the sigsegv issue, and continued implenting the wrapper for leveldb_blockchain