set db name correctly in tests and test it