Unit test for stack_circuits.