Fixed test compilation on MacOS
Merge pull request #2421 from thefiddler/mac_fix_test

Fixed test compilation on MacOS