Invalidation of cached classloaders - fixed an integ test

+review REVIEW-5219