Increase rules test coverage

Increased the test coverage for `no-mixed-requires`, `no-shadow`, and `max-depth` by adding test cases and removing unnecessary or unreachable code.