STS-3308 Fixed ClassCastException for ApplicationDelegate
Fixed failing test cases due to improper test harness setup where
lingering resources are still present from prior test runs.