tests for cloud.close