repaired some tests for DbReadWriter