Testing calls to dependency