reimplemented real modelLength test