added a test which mocks an http get request