Test the checkUpdate function