add tests for circuits