Move compare_version test into correct class