Avoid copy paste in tests