In this pattern the verb is followed by a direct object and a preposition and its object.
Now the object may be a noun phrase
=sleep through testing
=not to be woken up by a clinic machine noise;
However, the prepositional phrase(介係詞後的名詞可以不抽象) is variable, eg:-
spend 3 days on electronic oscilloscope-------prepositional phrase
spent 3 days under the (sleeping tunnel);eg:-
spent 3 days in the (exhausing body-pump);eg:-
spend in doing sth in explaining a clinic plan in all his energy---adv phrase.