Started implementing tri-state bus.
Rewrote gates tests.