Editing test to use a stub