add test/db_cleaner.js and refactor tests to use