Added version check for unit tests.