Minor fixed in version checking and tests