fix tests. add test db