test collection using inheritance