checking whether the isOldGen flag is correctly set