Fix destroying test database