test for circuit containing both current and voltage sources