cpp tests: fix test to respect DEFINES