Added raise to patch method so failing tests fail