How to handle unseen class feature in test dataset
Depends on the model.  I would say most of the time the new level is dropped or mapped to a NA level.  If possible, you should try to do a stratified sample for your training set to ensure that you get every level you care about.