The idea that tests can replace a type system (and vice versa) is a known fallacy.
Discussed here, two years before this article was written: https://www.destroyallsoftware.com/talks/ideology