Optimizing DbTest