mac test function has been added