Arm Interview Question

How do you write a test bench for decoder and ensure all slaves are receiving the correct output?