fix tests for rethinkdb