Added unit test for mac