refactored cloudsearch connection unittest class and added more tests