fixing assertion method so that it checks the accurate size of versions list