Avoid validation error in test