tests doc of resource