types: Add class destructor test