fix tests without db