test: add test for fetching resources