Not as easily as one might believe. There are proctoring tools for online testing.
also maybe they have to go to a specific testing center and do it online there, like a technical certification test etc.