Fixed inner class test by having a whitelist of classes