Fix a test on FreeBSD