fix failing tests in 2.10.0 by using the EitherValidation class instead of the object to get the classloader