fix test on FreeBSD