Tests still encode requirements. The problem is exactly the same there. You can’t write tests if you don’t know the intended behaviour.