Tom hadn't cooked something by the time Sally returned home.
Tom had done the shopping by the time Sally returned home.
Tom hadn't made the beds by the time Sally returned home.
Tom hadn't talked the rubbish out by the time Sally returned home.
Tom had put the baby's toys away by the time Sally returned home.
Tom had paid the phone bill by the time Sally returned home.