Added explicit check for bootstrap class loader and test case.