fixed database discovery test