Testability of code is indeed a good benchmark for code quality. The things that make it hard to test code are also the things that are associated with low quality code.
Something with low coupling, high cohesion, and low complexity should be easy to unit tests.
If a test is complicated or coverage is hard to achieve, it's likely your tested code needs improvement.