test for root_factory Resource.__getitem__