test: better fix for __APPLE__ test build