Fix integration tests (mocha now loads from ../../circuits)
Fixed bug that prevented current indicators from moving.
Add tests for resistor component. Add index for components.