Add check conditions in `quantization_driver_test.cc`.
Add check conditions in `quantization_driver_test.cc`.

- Adds more rigorous checks for desired states in intermediate testing stages.
- Renames and rewrites `IsEmpty` and `HasQuantParams` for clarity.
- Follows the recommendations in go/totw/135.
