Refactor: Consistently use smart pointers in `test-backend-ops` (#25440)
* Use smart pointers in test_case::eval
This makes it consistent with other methods of `test_case`.
* Use smart pointer in show_test_coverage also
* Also use smart pointers for backends