unit test cases for cloud service leak