Added tests for ResourceRepository::hasChildren()