Obviously the answer to testing and grading is to do it in the classroom. If a computer is required, it can't connect to the internet.
Caught with a cellphone, you fail the test. Caught twice you fail the class.
The non-story beatings will continue until morale and common sense improve.