fixed db tests