Fix dsn issue in tests