Fixed Test Cases

This needed some code refactoring as we have added a new method in azure
base module. Moving azure base test cases to a new spec file made sense
as azure base is used by most of the classes.