The solution is closed notes assessment, without any electronics used.
If tests evaluate understanding is up for debate. But that is what we switched to in the sciences.
Universities are going to have a reckoning moment, as most degrees 1) are not economically viable and 2) don't make sense to be taught in the current mode of instruction.