tests: Add platform handling for FreeBSD