Vergil was just testing Dante to see if he was strong enough to defend the earth in case Vergil becomes corrupted due to whatever reason. Vergil then goes to hell in search of girlfriend and Nero is the end product and they all live happily ever after, for now.