Unit test for Circuit class