Add tests for mac