Rewrite the sentence "Tom studied hard for the test." in passive voice.
The test was studied hard for by Tom.
Complete the following task based on the instruction and optional input provided.### Instruction:
Rewrite the sentence "Tom studied hard for the test." in passive voice.

### Output:
The test was studied hard for by Tom.