[client][test] Fix inappropriate position of calling done() callack