Roger Federer was put through his paces in practice as the former world number one prepares for his highly anticipated return at the Qatar Open.