fixed database test on osx