added testing whether are classes serializable