fixed database test