Added helper method to create a test database