CLOUDIFY-1432 added more assertions to test and made teardown possible even when nullifying the rest url's