[api] Refactor: move test bits to client, add quest test method.
Merge remote-tracking branch 'origin/master'