Remove unneeded variable forwarding from tests.
Don't require VERSION 3.0 for cmake_policy.

Just disable problematic policies before calling project ()