Add tests for resource directory read API