fixed tests for freebsd