[api] Add cluster API
[test] Make tests pass with cluster config