make sure StateDatabase is instanciated first in tests