ISPN-3396 Added different classloader test

Issue fixed indirectly via ISPN-3477. Just adding the test here.