Fixed DBTest race condition