Added resource entity and tests for the resource repository for traversal.
Added tests for traversing resources.