[api] Make `options` optional
[api] Default `hosts` to `[]`
[api test] Add `#addHost` and `#removeHost`