moved test-related macros into macros.cmake