correct target-specific flags for tests