Fix issue with creation of test database