DB settings and writing a test