Fix warning
Fix test for mac