Made proper test for checking Resource objects without a defined object_class.