test profile controller resource_class method