Test astropy.__version__ instead of _latest_generated_version