Fix cmake policy warning

test is a reserved name.
Merge pull request #282 from BtbN/cmake_mac_fix

Fix cmake policy warning