Novak Djokovic was made to work by Frenchman Quentin Halys before moving into the last eight in Adelaide