Clean up specs by using spyOn instead of manually mocking methods.