Added many tests for the openStack plugin and corrected a bug