Ответ:
1. When l came home, my mother had gone shopping.
2. When l opened the door of classroom, I saw) that the teacher had already come and a student were writting a test.
3. When l came home my sister was reading a book which she had brought from the library