It depends on the nature of exam, teacher and the students, whether it's an All-India exam or a class test, whether the invigilator will be a stranger to the students, whether there are students having genuine issues with internet access or a comfortable study environment etc. If the teacher has a decision making power with regard to the test, he or she should consider the students' academic as well as personal environments.