use leveldown & rimraf for test
fix bug in iterator
iterator: remove iterator on .end()