MULE-6831: Applications deleted when deployment fails

_ Cleaning test code
MULE-6831: Applications deleted when deployment fails

_ Cleaning test code
MULE-6926: fix flaky tests

_ Marking some AJAX tests as flaky