[Mac] Fix unit tests