Moved sinon to top level to ensure timers in leveldb wrapper run.