Fixed circuits 3.0 compatibility for tests
Updated to circuits 3.x
Fixed all tests. Ported tests to circuits 3.0