namespaced API client mock