Added a bunch of tests for Cloud API.