fixed the failure testcases, errorMessages and debugMessages needs to be reset when setting up corresponding vc's in a view