implemented fetch request, implemented tests for fetching