Fixes test-quantum-program bug with not actually running through cases