Fixed version check in test.