People write tests in statically typed languages too, it's just that there's a whole class of bugs that you don't have to test for.