fix tests for mac