update rethinkdb
replace callback favore promise in before hook
fix setup declaration
test refactoring