Added test script, the tests are actually taken from the azure-cli project.