testing polymorphic checkyfy function