Add final key to classes
UnitTest for getAllClasses