No, tests are commonly in the same package as the implementation.
I did find this one: https://github.com/tenta-browser/tenta-dns/blob/master/src/t...
That's an internal test, meaning it has access to the package internals. A better test would test from outside the boundaries of the package to only interact with exposed symbols.