Code refactored

1. Availability set with extensions testcase added
2.Docker vm create with -o option testcase added
3. Code refactored for taking common methods from a utility function