Fix error in build script for mac platform
Add missing namespace include and typename
Update test script