Correct a test and extract the db configuration to a file