CLOUDSTACK-5674: cls.fail does not work in setUpClass fixed it with assert.
CLOUDSTACK-5674: apiclient was used before it was created. Fixed it.
CLOUDSTACK-5674: Added missing import for FAILED
CLOUDSTACK-5674: Fix a missing closing bracket.
CLOUDSTACk-5674: Fix missing import