Check for the version at run time instead of compile time.

If 1.5.0 is first, this test wasn't running for any version.