preliminary test proctoring code