test base-derived classes