Make test self-contained.

This test depends on code in sdt.core master, that is not available in 3.0.x.
Removed the dependency by implementing the version comparison in the test itself.