Added support for Mac and added a test for rendering