refactor tests, fix bug in NeDB
Merge pull request #14 from daliwali/nedb-adapter

refactor tests, fix bug in NeDB